import React, { Component, PropTypes } from 'react';
import {
  Text,
  View,
  ScrollView,
  DeviceEventEmitter,
  Platform,
  NativeAppEventEmitter,
  InteractionManager,
} from 'react-native';

import styles from './indexStyle';
import api from '../../services/api';
// import SelectCityComp from '../global/selectCity/SelectCity';

import SelectCityComp from '../global/selectCity/SelectCityList';


class SelectCity extends Component {
    constructor(props) {
		super(props);

		this.state = {
			isLoading: true,
			isRefreshing: false,
		};

		// this._getTabHeight = this._getTabHeight.bind(this);
		// this._onChangeTab = this._onChangeTab.bind(this);

		// this.props.navigator.setOnNavigatorEvent(this._onNavigatorEvent.bind(this));
	}
    componentWillMount() {
		// this._retrieveDetails();
	}

    componentWillUnmount() {
        // this.timer && clearTimeout(this.timer);
    }

    componentDidMount(){

    }

    render() {
        return (
            <View style={{flex:1}}>
                <SelectCityComp curCity={this.props.city} code={this.props.code} location_city={this.props.location_city} navigator={this.props.navigator}/>
            </View>
        );
    }
}

var connectHelper = require('../../services/connectHelper');
SelectCity = connectHelper(state => state)(SelectCity);

module.exports = SelectCity;
